export function filter_state(val) {
    let value = null;
    switch(val) {
        case "new":
            value = "新订单";
            break;
        case "appointed_measurement":
            value = "预约测量"
            break;
        case "measured":
            value = "已测量"
            break;
        case "appointed_installation":
            value = "预约安装"
            break;
        case "installed":
            value = "已安装"
            break;
        case "completed":
            value = "已完成"
            break;
        case "canceled":
            value = "已取消"
            break;
        case "confirm_installed":
            value = "管理员确认"
            break;
        default:
            value = "--"
    }
    return value;
}
export function current_user(){
    let user = localStorage.getItem("chuang_user")
    if (user) {
        return JSON.parse(user)
    } else {
        return {}
    }
}
